package com.atguigu.search.feign;

import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/** 远程调用商品服务
 * @Author ShiJieLin
 * @Date 2022/4/19 9:07
 * @Version 1.0
 */
@FeignClient("gulimall-product")
public interface ProductFeignService {

    /** 根据属性ID查询 属性名字
     * @param attrId 属性ID
     * @return
     */
    @RequestMapping("/product/attr/info/{attrId}")
    R info(@PathVariable("attrId") Long attrId);




}
